package cn.haona.game.simb.object.bio;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;

import cn.haona.db.RelevanceBean;
import cn.haona.game.simb.object.Persistence;
import cn.haona.game.simb.object.PersistenceImpl;

public abstract class PersistenceHuman extends PersistenceImpl implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -20643543783634641L;

	//状态名
	final public static String STATE_NAME="STATE_NAME";
	
	//年龄
	final public static String AGE = "AGE";
	//性别
	final public static String SEX = "SEX";
	//生命值
	final public static String HP = "HP";
	//现金
	final public static String CASH = "CASH";
	//攻击力
	final public static String GUNSKILL = "GUNSKILL";
	//武器ID
	final public static String WEAPON = "WEAPON_ID";
	//护甲ID
	final public static String ARMOR = "ARMOR_ID";
	//工作
	final public static String JOB="JOB";
	
	/**
	 * 
	 */
	//心情
	protected Integer mood;
	// 当前状态类名
	protected String stateName;
	//性别
	protected Integer sex;  
	//用户性别(0=男;1=女)
	final public static Integer SEX_MALE=0;
	//年龄
	protected Integer age;
	
	//工作
	protected Integer job;
	//现金
	protected Integer cash;
	//生命值
	protected Integer hp;
	//攻击力
	protected Integer gunskill;
	
	//当前武装
	protected Integer weaponID; 
	//护甲
	protected Integer armorID;
	
	
	/**
	 * 设置基础的反射关联
	 * 
	 * @param reflectRelevance
	 */
	public void setReflectRelevance(
			HashMap<String, RelevanceBean> reflectRelevance) {
	    super.setReflectRelevance(reflectRelevance);
	    reflectRelevance.put(STATE_NAME, new RelevanceBean("stateName", STATE_NAME));
	    reflectRelevance.put(AGE, new RelevanceBean("age", AGE));
	    reflectRelevance.put(SEX, new RelevanceBean("sex", SEX));
	    reflectRelevance.put(HP, new RelevanceBean("hp", HP));
	    reflectRelevance.put(CASH, new RelevanceBean("cash", CASH));
	    
	    reflectRelevance.put(GUNSKILL, new RelevanceBean("gunskill", GUNSKILL));
	    reflectRelevance.put(WEAPON, new RelevanceBean("weaponID", WEAPON));
	    reflectRelevance.put(ARMOR, new RelevanceBean("armorID", ARMOR));
	    reflectRelevance.put(JOB, new RelevanceBean("job", JOB));
	}

	public Integer getMood()
	{
	    return mood;
	}

	public void setMood(Integer mood)
	{
	    this.mood = mood;
	}

	public Integer getSex()
	{
	    return sex;
	}

	public void setSex(Integer sex)
	{
	    this.sex = sex;
	}

	public Integer getAge()
	{
	    return age;
	}

	public void setAge(Integer age)
	{
	    this.age = age;
	}

	public Integer getJob()
	{
	    return job;
	}

	public void setJob(Integer job)
	{
	    this.job = job;
	}

	public Integer getCash()
	{
	    return cash;
	}

	public void setCash(Integer cash)
	{
	    this.cash = cash;
	}

	public Integer getHp()
	{
	    return hp;
	}

	public void setHp(Integer hp)
	{
	    this.hp = hp;
	}

	public Integer getGunskill()
	{
	    return gunskill;
	}

	public void setGunskill(Integer gunskill)
	{
	    this.gunskill = gunskill;
	}

	public Integer getWeaponID()
	{
	    return weaponID;
	}

	public void setWeaponID(Integer weaponID)
	{
	    this.weaponID = weaponID;
	}

	public Integer getArmorID()
	{
	    return armorID;
	}

	public void setArmorID(Integer armorID)
	{
	    this.armorID = armorID;
	}

	public String getStateName()
	{
	    return stateName;
	}

	public void setStateName(String stateName)
	{
	    this.stateName = stateName;
	}
}
